package com.itcast.StringBuilder.Demo01;

/*
要写注释哦!!!
*/
public class Test5 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};
        int[] newArr = new int[10];

        System.arraycopy(arr,4,newArr,newArr.length-3,3);
        for (int a = 0; a < newArr.length; a++) {
            System.out.print(newArr[a]+",");
        }
    }
}
